<?php
// +----------------------------------------------------------------------
// | 商品品牌模型
// +----------------------------------------------------------------------
// | Author: myh
// +----------------------------------------------------------------------
namespace app\common\model;

class GoodsBrandModel extends BaseModel
{   
    protected $table = 'ds_goods_brand';


    public function searchBrandNameAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('brand_name', $value);
        }
    }


    public function searchCateIdAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('cate_id', $value);
        }
    }

}
